<!--  -->
<template>
  <div>
    <h1>this is app</h1>
    <h2>this is hot</h2>
    <div>
      <img :src="require('./assets/1.png')" alt=""></img>
    </div>
    <el-button type="primary" @click="handleClick('login')">主要按钮</el-button>
    <el-button type="success" @click="handleClick('home')">成功按钮</el-button>
    <router-view/>
  </div>
</template>

<script>
export default {
  data () {
    return {
    };
  },

  components:{},

  computed:{},

  mounted(){},

  methods:{
    handleClick(routeName){
      this.$router.push({
        name:routeName
      })
    }
  }
}

</script>
<style scoped>
  h1{
    color:red
  }
</style>